package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:实例内部类
 * User: 86183
 */
public class A {
    private int a = 10;
    static int b = 20;
    public int c = 30;
    public void fun1() {
        a = 1;
        System.out.println(a);

    }
    public static void fun2() {
        System.out.println(b);
    }
    class B {
        public int c = 40;
        public int d = 50;
        public void func() {
            a = 100;
            b = 200;
            fun1();
            fun2();

            c = 300;
            System.out.println(c);
            System.out.println(this.c);
            System.out.println(+A.this.c);
        }
    }
    public void fun3(){
        B b = new B();
        b.func();
        System.out.println(b.d);
    }
}
